class HomePageModel {
  String _id;
  String name;
  String state;
  int money;
  String date;

  HomePageModel.fromJson(Map<String, dynamic> json) {
    _id = json['_id'];
    name = json['name'];
    state = json['state'];
    money = json['money'];
    date = json['date'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['_id'] = this._id;
    data['name'] = this.name;
    data['state'] = this.state;
    data['money'] = this.money;
    data['date'] = this.date;
    return data;
  }
}
